import 'package:flutter/material.dart';
import 'package:interview/components/search_box.dart';
import 'package:interview/theme/app_colors.dart';

class InterviewHeader extends StatefulWidget {
  final AppColors theme;
  const InterviewHeader({super.key, required this.theme});

  @override
  State<InterviewHeader> createState() => _InterviewHeaderState();
}

class _InterviewHeaderState extends State<InterviewHeader> {
  @override
  Widget build(BuildContext context) {
    return  Container(
      color: widget.theme.subjectPure,
      padding: EdgeInsets.only(left: 16 , right: 16 ,bottom: 16),
      child: Row(
        children: [
          Text("面经宝典", style: TextStyle(fontSize: 14 ,fontWeight: FontWeight.bold ,color: widget.theme.contrastPure),),
          Expanded(
            child: SearchBox()
          ),
        ],
      )
    );
  }
}